package statics;

public class FrogWithStaticVar
{

	static int frogCount = 0; // Declare and initialize

	// static variable

	public FrogWithStaticVar()
	{

		frogCount += 1; // Modify the value in the constructor

	}

	public static void main(String[] args)
	{
		new FrogWithStaticVar();
		new FrogWithStaticVar();
		new FrogWithStaticVar();

		System.out.println("Frog count is now " + frogCount);

	}

}
